package fun.diaoer.service;
import java.io.File;
import org.springframework.stereotype.Service;
import fun.diaoer.common.DiaoerFileUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * 页面跳转service
 * @author xiaodiannao
 *
 */
@Slf4j
@Service
public class PageService extends AbstractService{
	
	private static final String EXPIRES = "Expires";
	private static final String PRAGMA = "Pragma";
	private static final String CONTENT_DISPOSITION = "Content-Disposition";
	private static final String CACHE_CONTROL = "Cache-Control";
	
	
	public void getOuterPage(String path,String name){
		try{
			String basePath="D://";
			File file = new File(basePath+path,name);
			DiaoerFileUtils.getResponseResource(file);
		}catch(Exception e){
			e.getStackTrace();
		}
	}
	
}
